package Testking14;

public class Gen<T> {

	private T object;

	public Gen( T object){
		this.object = object;
	}

	public  T getObject(){
		return object;
	}

	public static void main(String[] args) {
		Gen<String> str = new Gen<String>("answer");
		Gen<Integer> intg = new Gen<Integer>(42);

		System.out.println(str.getObject() +"=="+intg.getObject());
	}
}
